import type { IQuery, TableResponse } from '@/api/config/types';
import axios from 'axios';

interface LightQueue {
  queueId: string;
  tagCode: string;
  stationNum: string;
  lightTimes: number;
  sendTime: string;
  doneTime?: any;
  retryTimes: number;
  status: string;
  deptId: string;
}

export const lightQueueList = (query?: IQuery) => {
  return axios.get<TableResponse<LightQueue>>(`/queue/light/list`, {
    params: query,
  });
};
